package com.demo.server.pojo;

import java.io.Serializable;

/**
 * @author:谢君臣
 * @Date:2021/7/25-15:16
 * @version:1.0
 * @function:
 */
public class User implements Serializable {
    private long id;
    private String username;
    private String ip;

    public User() {
    }

    public User(long id, String username, String ip) {
        this.id = id;
        this.username = username;
        this.ip = ip;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", ip='" + ip + '\'' +
                '}';
    }
}
